// import Vue from "vue";
// import VueRouter from "vue-router";
// Vue.use(VueRouter);
import Home from "../zp/Home.vue";
import My from "../zp/My.vue";
import Shoppingcart from "../zp/Shoppingcart.vue";
import Classify from "../zp/Classify.vue";
import Dongtai from "../zp/Dongtai.vue";
import Shujia from "../zp/Shujia.vue";
import Tushu from "../zp/Tushu.vue";
import Fushi from "../zp/Fushi.vue";
import Dianzi from "../zp/Dianzi.vue";
import Yuanchuang from "../zp/Yuanchuang.vue";
import Details from "../zp/Details.vue";
import Sell from "../zp/Sell.vue";
import Sellbook from "../zp/Sellbook.vue";
import Sellclothes from "../zp/Sellclothes.vue";
import Sellelectron from "../zp/Sellelectron.vue";

// let routes = 

export default [
    {
        path:"/",
        redirect:"/Home"
    },
    {
        path: "/Home",
        component: Home,
        children: [
            {
                path: "/",
                // component:Tushu
                redirect: "Tushu"
            },
            {
                path: "Tushu",
                component: Tushu
            },
            {
                path: "Fushi",
                component: Fushi
            },
            {
                path: "Dianzi",
                component: Dianzi
            },
            {
                path: "Yuanchuang",
                component: Yuanchuang
            }
        ]
    },
    {
        path: "/My",
        component: My,
        children: [
            {
                path: "/",
                redirect: "Dongtai"
            },
            {
                path: "Dongtai",
                component: Dongtai
            },
            {
                path: "Shujia",
                component: Shujia
            }
        ]
    },
    {
        path: "/Shoppingcart",
        component: Shoppingcart
    },
    {
        path: "/Classify",
        component: Classify
    },
    {   
        name:"Details",
        path: "/Details/:id/",
        component: Details
    },
    {
        path: "/Sell",
        component: Sell,
        children: [
            {
                path: "/",
                redirect: "Sellbook"
            },
            {
                path: "Sellbook",
                component: Sellbook
            },
            {
                path: "Sellclothes",
                component: Sellclothes
            },
            {
                path: "Sellelectron",
                component: Sellelectron
            }
        ]
    }
]

// export default new VueRouter({
//     routes: routes,
//     mode: "history"
// });
